﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQ_Laboration
{
    public class Customer
    {
        public string Address { get; set; }
        public string City { get; set; }
        public string CompanyName { get; set; }
        public string Country { get; set; }
        public string CustomerID { get; set; }
        public string Fax { get; set; }
        public Order[] Orders { get; set; }
        public string Phone { get; set; }
        public string PostalCode { get; set; }
        public string Region { get; set; }

        public Customer()
        {

        }

        public Customer(string address, string city, string companyName, string country, string customerID, string fax, Order[] order, string phone, string postalCode, string region)
        {
            Address = address;
            City = city;
            CompanyName = companyName;
            Country = country;
            CustomerID = customerID;
            Fax = fax;
            Orders = order;
            Phone = phone;
            PostalCode = postalCode;
            Region = region;
        }

        public override string ToString()
        {
            return string.Format("Address: {0},\r\n City: {1},\r\n CompanyName: {2},\r\n Country: {3},\r\n CustomerID: {4},\r\n Fax: {5},\r\n Orders: {6},\r\n Phone: {7},\r\n PostalCode: {8},\r\n Region: {9}\r\n", Address, City, CompanyName, Country, CustomerID, Fax, Orders, Phone, PostalCode, Region);
        }


    }
}
